package wiki.mdzz.learn_android.utils

import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.widget.Toast

class BootCompleteReceiver : BroadcastReceiver() {
    override fun onReceive(context: Context, intent: Intent) {
        when (intent.action) {
            Intent.ACTION_BOOT_COMPLETED ->
                Toast.makeText(context, "Boot Complete", Toast.LENGTH_SHORT).show()
        }
    }
}